﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Repository.Models
{
    /// <summary>
    /// 服药登记
    /// </summary>
    public class MedicationRegister : BusinessFullEntityBase<Guid>
    {
        /// <summary>
        /// 幼儿id
        /// </summary>
        public Guid ChildId { get; set; }

        /// <summary>
        /// 服药时间
        /// </summary>
        public DateTime MedicationTime { get; set; }

        /// <summary>
        /// 班级
        /// </summary>
        public Guid ClassId { get; set; }

        /// <summary>
        /// 药物名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Explain { get; set; }

        /// <summary>
        /// 家长id
        /// </summary>
        public Guid ParentId { get; set; }

        /// <summary>
        /// 家属关系
        /// </summary>
        public int? Relationship { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public EnumMedicationRegisterState State { get; set; }

        /// <summary>
        /// 确认人
        /// </summary>
        public Guid? TeacherId { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime? ConfirmedTime { get; set; }

        /// <summary>
        /// 撤销时间
        /// </summary>
        public DateTime? RescindedTime { get; set; }

        /// <summary>
        /// 驳回时间
        /// </summary>
        public DateTime? RejectTime { get; set; }

        /// <summary>
        /// 驳回理由
        /// </summary>
        public string? RejectReason { get; set; }

        /// <summary>
        /// 内容图片
        /// </summary>
        public List<MedicationRegisterImage>? Images = null;

        /// <summary>
        /// 签名
        /// </summary>
        public string? AutographImg { get; set; }
    }
}
